home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / text / misc / nroff.lha / nroff / tests.shar.Z / tests.shar / report.out < prev    next >
Text File  |  1998-03-09  |  5KB  |  199 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.       The "Definitive" Test of My -ms Macro Package --
  11.                     How to Get Gray Hair
  12.  
  13.  
  14.                              by
  15.                               
  16.                       Bill Rosenkranz
  17.                     rosenkra@convex.com
  18.  
  19.                 Convex Computer Corporation
  20.                    Syracuse Sales Office
  21.  
  22.  
  23.                           SUMMARY
  24.  
  25.      This is  the  abstract.   I have nothing really to
  26.      say here except that the  rest  of  this  document
  27.      exercises  the  following  macros: SH, PP, XP, QP,
  28.      RS, RE.  Output is comparable to "real" nroff -ms, 
  29.      more or less.  Note that there is a seperate  test
  30.      for NH-style headers which are not included here.  
  31.  
  32.  
  33.  
  34. Section 1 
  35.  
  36.      This is  text  for  section  1.   It is very nice text,
  37. though a bit boring!  As you will  see.    I  needed  enough
  38. stuff  here  to make the page break so we can see the header
  39. line on Page 2.  This is text for section 1.    It  is  very
  40. nice text,  though  a  bit boring!  This is text for section
  41. 1.  It is very nice text, though a bit boring!  This is text 
  42. for section 1.  It is very nice text, though a  bit  boring!
  43. This is  text for section 1.  It is very nice text, though a
  44. bit boring!  This is text for section 1.  It  is  very  nice
  45. text, though a  bit boring!  This is text for section 1.  It
  46. is very nice text, though a bit boring!  This  is  text  for
  47. section 1.  It is very nice text, though a bit boring!  This 
  48. is text  for  section 1.  It is very nice text, though a bit
  49. boring!  This is text for section 1.  It is very nice  text,
  50. though a bit  boring!    This  is text for section 1.  It is
  51. very nice text, though a bit  boring!    This  is  text  for
  52. section 1.  It is very nice text, though a bit boring!  
  53.  
  54.      This is yet more text for section 1.  I warned you.  It 
  55. is also  very  nice  text, though a bit boring!  This is yet
  56. more text for section 1.  It is very nice text, though a bit 
  57. boring!  Don't you think?  This is yet more text for section 
  58. 1.  It is very nice text, though a bit boring!  This is  yet
  59. more text for section 1.  It is very nice text, though a bit 
  60. boring!  This  is  yet more text for section 1.  This is yet
  61.  
  62.  
  63.  
  64. Left                   Center Footer                   Right
  65.  
  66.  
  67.  
  68.  
  69.                            - 2 -
  70.  
  71.  
  72. more text for section 1.  This is yet more text for  section
  73. 1.  It  is very nice text, though a bit boring!  This is yet
  74. more text for section 1.  It is very nice text, though a bit 
  75. boring!  
  76.  
  77.      Ok,  here  is  something  a  bit  more  interesting:  a
  78. relative indent!  
  79.  
  80.      This is  a  relative  indent.  It should be indented on
  81.      the left but the line should end on the right where  it
  82.      does in normal text.  
  83.  
  84.      This is another relative indent.  
  85.  
  86.      How about another?  
  87.  
  88.      Ok, that  is just about enough.  Now we end the RS with
  89.      a RE.  Note that RS/RE pairs  can  be  nested,  as  the
  90.      following example shows: 
  91.  
  92.           this is one more level.  
  93.  
  94.                this is one more level.  
  95.  
  96.                     this is one more level.  
  97.  
  98.                this is one less level.  
  99.  
  100.           this is one less level.  
  101.  
  102.      Now we  should be back to normal.  Just make sure there
  103. is an RE for every RS (sorry, no checking is done).  This is 
  104. still more text for section 1.  Still  very,  very,  boring.
  105. This is  still  more text for section 1.  This is still more
  106. text for section 1.  Still very,  very,  boring.    This  is
  107. still more text for section 1.  Still very, very, boring.  
  108.  
  109.  
  110. Section 2 
  111.  
  112.      Now we are at the next major section.  This is text for 
  113. section 2.   Still  very,  very,  boring.   This is text for
  114. section 2.  This is text for section 2.  Still  very,  very,
  115. boring.  This  is  text  for  section  2.  Still very, very,
  116. boring.  This is text for section  2.    This  is  text  for
  117. section 2.   This  is text for section 2.  Still very, very,
  118. boring.  This is text for section  2.    Still  very,  very,
  119. boring.  
  120.  
  121.      This is  a  quoted paragraph.  Notice how the text
  122.      is indented at both margins?  Use QP just like any 
  123.      other paragraph macro, but make sure you use a  PP
  124.      or  LP  after  it  to  reset  the  indent and line
  125.      length!  
  126.  
  127.  
  128.  
  129.  
  130. Left                   Center Footer                   Right
  131.  
  132.  
  133.  
  134.  
  135.                            - 3 -
  136.  
  137.  
  138.      Ok, back to normal  again.    This  is  more  text  for
  139. section 2.   When will this ever end!  This is more text for
  140. section 2.  This is more text for section 2.  This  is  more
  141. text for section  2.  When will this ever end!  This is more
  142. text for section 2.  This is more text for section 2.   When
  143. will this ever end!  
  144.  
  145.      Here  we  try  the extended paragraph which is like the
  146. invers of PP.  It does not indent the first line,  but  does
  147. indent all subsequent lines.  It is useful for bibliographic 
  148. entries, such as: 
  149.  
  150. Del  Piombo,  Akbar, "Sex Life of the Turtle", Nimrod Press,
  151.      Chicago, Illinois, July,  1990.    5023  pages.     The
  152.      pioneering work in the field.  
  153.  
  154.      Just make sure to do PP or LP when finished, though you 
  155. could   do   the  entire  document  this  way,  just  to  be
  156. different.  Here I used PP to get back to "normal".  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196. Left                   Center Footer                   Right
  197.  
  198.  
  199.